package com.winit.feature.model;

import com.winit.common.util.treeUtils.NodeElement;
import io.swagger.annotations.ApiModel;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.util.Map;

/**
 * Created by wangjian on 2017/10/27.
 */
@Entity
@Table(name = "matrix_feature")
@ApiModel(value="brd",description="brd对象")
@DynamicUpdate
@DynamicInsert
public class MFeature {

    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "status")
    private String status;
    @Column(name = "req_id")
    private String reqId;
    @Column(name = "attr_config_id")
    private String attrConfigId;
    @Column(name = "feature_name")
    private String featureName;
    @Column(name = "sys")
    private String sys;
    @Column(name = "original_page_id")
    private String originalPageId;
    @Column(name = "type")
    private String type;

    @Transient
    private String parent_id;
    @Transient
    private String path;
    @NodeElement(name = "attrs")
    @Transient
    private Map<String, String> attr;

    public String getParent_id() {
        return parent_id;
    }

    public void setParent_id(String parent_id) {
        this.parent_id = parent_id;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReqId() {
        return reqId;
    }

    public void setReqId(String reqId) {
        this.reqId = reqId;
    }

    public String getAttrConfigId() {
        return attrConfigId;
    }

    public void setAttrConfigId(String attrConfigId) {
        this.attrConfigId = attrConfigId;
    }

    public String getFeatureName() {
        return featureName;
    }

    public void setFeatureName(String featureName) {
        this.featureName = featureName;
    }

    public String getSys() {
        return sys;
    }

    public void setSys(String sys) {
        this.sys = sys;
    }

    public Map<String, String> getAttr() {
        return attr;
    }

    public void setAttr(Map<String, String> attr) {
        this.attr = attr;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getOriginalPageId() {
        return originalPageId;
    }

    public void setOriginalPageId(String originalPageId) {
        this.originalPageId = originalPageId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
